Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Try to flush after failing without waiting for the next log.#93

Merged
vilyapilya merged 6 commits intomasterfrom
flushAfterError
Feb 19, 2020
Merged

Try to flush after failing without waiting for the next log.#93
vilyapilya merged 6 commits intomasterfrom
flushAfterError

Conversation

@vilyapilya
Copy link
Copy Markdown
Contributor

@vilyapilya vilyapilya commented Feb 18, 2020

Previously: when the logger fails to send a log, it saved the message in the buffer and attempts to send it only after receiving the next log.

Now: when the logger fails to send a log, it tries to send it three times (after backoff period is passed) without waiting for the next log to come. If it fails to send it three (configurable) times, it saves it in the buffer and attempts again when the next message comes.

@vilyapilya vilyapilya requested a review from smusali February 18, 2020 21:39
@vilyapilya vilyapilya changed the title Flush after error Try to flush after failing without waiting for the next log. Feb 18, 2020
Copy link
Copy Markdown
Contributor

@smusali smusali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementation-wise, it looks good to me - but before publishing, CircleCI will create GitHub Release with the zipped package to be tested and confirmed it's all good to go to be published.

@vilyapilya vilyapilya merged commit 00245b7 into master Feb 19, 2020
@smusali smusali deleted the flushAfterError branch August 12, 2020 17:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants